Pseudowire protection using a standby pseudowire

ABSTRACT

Providing protection to network traffic includes sending a Pseudowire protection configuration parameter for configuring a standby Pseudowire between a source node and a destination node, receiving a Pseudowire configuration acknowledgement indicating whether the Pseudowire protection configuration parameter has been accepted by the destination node, and in the event that the Pseudowire protection configuration parameter has been accepted by the destination node, using the standby Pseudowire, wherein the standby Pseudowire&#39;s configured based at least in part on the Pseudowire protection configuration parameter.

CROSS REFERENCE TO OTHER APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 13/038,282, filed Mar. 1, 2011 and entitled “PSEUDOWIRE PROTECTION USING A STANDBY PSEUDOWIRE”, which is a continuation of U.S. patent application Ser. No. 11/354,569, filed Feb. 14, 2006, and entitled “PSEUDOWIRE PROTECTION USING A STANDBY PSEUDOWIRE”, which issued as U.S. Pat. No. 7,940,652 on May 10, 2011, and which claims priority to U.S. Provisional Application Ser. No. 60/653,065, filed on Feb. 14, 2005 and entitled “Pseudo wire protection”, the entireties of which are herein incorporated by reference.

BACKGROUND OF THE INVENTION

In recent years, many networking and telecommunications carriers have deployed Pseudowires to carry Layer-2 (also known as the data link layer of the Open Systems Interconnection (OSI) Reference Model) traffic. A Pseudowire (PW) refers to an emulation of a native service over a network. Examples of the native service include Asynchronous Transfer Mode (ATM), Frame Relay, Ethernet, Time Division Multiplexing (TOM), Synchronous Optical Network (SONET), Synchronous Digital Hierarchy (SOH), etc. Examples of the network include Multiprotocol Label Switching (MPLS), Internet Protocol (IP), etc. More recently, a number of carriers have extended the use of Pseudowires beyond packet encapsulation, and offered Pseudowires as a type of network service. Consequently, data traffic protection and redundancy in environments that use Pseudowire have become critical.

At the edge of a network, a network edge device such as an edge router may receive multiple Layer-2 flows (also referred to as Attachment Circuits (ACs)). In a typical network supporting Pseudowires, each AC is mapped to a Pseudowire. Ingress packets received mapped to a specific Pseudowire are labeled with an identifier associated with this Pseudowire, and are switched via the Pseudowire. A physical link may support one or more Pseudowires. Ideally, the data flow in a Pseudowire should be protected. In other words, if an active Pseudowire fails, the data flow should be redirected to an alternative Pseudowire to avoid data loss.

Pseudowires can operate over many physical media types. However, existing Pseudowire systems typically provide no protection or very limited protection. For example, there is usually no data protection for Pseudowires on different physical media types, since most network protection schemes, such as APS for SONET, Link Aggregation for Ethernet, do not apply over multiple physical media types.

Some MPLS devices implement schemes such as MPLS Fast Reroute to provide limited data protection. These existing schemes, however, often do not provide adequate protection. Take the following scenario as an example: between two provider edges (PEs), a first tunnel comprising multiple Pseudowires is protected by a second tunnel. Due to network topology constraints, the two tunnels may have different bandwidth. This is a possible scenario in an MPLS Fast Reroute operation. In this example, the second tunnel may have lower bandwidth than that of the first one. If the first tunnel should fail, the amount of data that needs to be redirected through the second tunnel may exceed the capacity of the second tunnel. Furthermore, existing protocols typically do not provide a way of determining which data gets priority. Thus, certain mission critical data may be dropped while other less critical data may pass through.

It would be desirable to have a way to provide better Pseudowire protection and to have more control during switchover. It would also be desirable if the protection scheme could be implemented without significant changes to existing protocols and devices.

BRIEF DESCRIPTION OF THE DRAWINGS

Various embodiments of the invention are disclosed in the following detailed description and the accompanying drawings.

FIGS. 1A and 1B are block diagrams illustrating an embodiment of a single-hop Pseudowire system and an embodiment of a multi-hop Pseudowire system, respectively.

FIG. 2 is a flowchart illustrating an embodiment of a process of providing data protection using Pseudowires.

FIG. 3A is a flowchart illustrating another embodiment of a process of providing data protection using Pseudowires.

FIG. 3B is a flowchart illustrating how the Pseudowire is used, according to some embodiments.

FIG. 4 is a data structure diagram illustrating an embodiment of a Pseudowire protection configuration parameter that specifies several protection-related properties of the Pseudowire.

FIG. 5 is a flowchart illustrating an example process of using the priorities during switchover.

FIG. 6 is a diagram illustrating an example in which preemption takes place during a switchover process.

DETAILED DESCRIPTION

The invention can be implemented in numerous ways, including as a process, an apparatus, a system, a composition of matter, a computer readable medium such as a computer readable storage medium or a computer network wherein program instructions are sent over optical or electronic communication links. In this specification, these implementations, or any other form that the invention may take, may be referred to as techniques. A component such as a processor or a memory described as being configured to perform a task includes both a general component that is temporarily configured to perform the task at a given time or a specific component that is manufactured to perform the task. In general, the order of the steps of disclosed processes may be altered within the scope of the invention.

A detailed description of one or more embodiments of the invention is provided below along with accompanying figures that illustrate the principles of the invention. The invention is described in connection with such embodiments, but the invention is not limited to any embodiment. The scope of the invention is limited only by the claims and the invention encompasses numerous alternatives, modifications and equivalents. Numerous specific details are set forth in the following description in order to provide a thorough understanding of the invention. These details are provided for the purpose of example and the invention may be practiced according to the claims without some or all of these specific details. For the purpose of clarity, technical material that is known in the technical fields related to the invention has not been described in detail so that the invention is not unnecessarily obscured.

Providing protection to network traffic using one or more Pseudowires is disclosed. In some embodiments, a Pseudowire protection configuration parameter is sent to a destination node. A Pseudowire configuration acknowledgment from the destination node is received. If a Pseudowire is allowed to be established according to the Pseudowire configuration acknowledgment, it is established based at least in part on the Pseudowire protection configuration parameter. In embodiments where the Pseudowire is established as a standby Pseudowire configured to protect one or more primary Pseudowires, in the event that a primary Pseudowire fails to transfer network traffic for reasons such as network congestion, equipment failure, etc., network traffic that is originally designated to be transferred on the primary Pseudowire(s) is switched from the primary Pseudowire(s) to the standby Pseudowire.

The protection technique is applicable to both single-hop and multi-hop systems. FIGS. 1A and 1B are block diagrams illustrating an embodiment of a single-hop Pseudowire system and an embodiment of a multi-hop Pseudowire system, respectively. Configuring and switching the Pseudowire will be discussed in more detail below.

In the example shown in FIG. 1A, system 100 is a single-hop system where the nodes in the system all belong to the same carrier network. Within each carrier network, all network nodes and facility are under a common administrative control. A service provider company may own multiple carrier networks in different regions. As used herein, a node refers to a networked device. In this case, the nodes in the system are provider edges (PEs) A, B, C, and D, which all belong to the same carrier network. Ingress data received by attachment circuits 112 of PE A designated for PE B may be sent via a label switched path (LSP) through PEs A, C, and B, or an LSP through PEs A, D, and B. The first LSP comprises Pseudowires 102, 104 and 106, and the second LSP comprises Pseudowires 108 and 110. In this example, the Pseudowire connections between PEs are established using the Label Distribution Protocol (LDP). The connections are based on LDP sessions. Each LDP session is to connect two local or remote nodes. There may be multiple paths interconnecting any two nodes in the network. Thus, for each LDP session, there may be multiple LDP Hello Adjacencies, one LDP Hello Adjacency per path. For purposes of example, throughout this specification, LDP is used as the communication protocol between nodes. Other appropriate protocols may also be used.

In the example shown in FIG. 1B, system 150 is a multi-hop system since it includes multiple carrier networks. Carrier networks 1-6 form autonomous systems 16, respectively. Each autonomous system includes one or more networks that are controlled by a carrier. For purposes of illustration, three Pseudowires are shown in this example to transfer data between PE 1A and PE 3B: a first Pseudowire comprising a path via autonomous systems 1, 2, and 3, a second Pseudowire comprising a path via autonomous systems 1, 6, and 3, and a third Pseudowire comprising a path via autonomous systems 1, 4, 5, and 3. Other Pseudowire formations are possible. At the source node PE 1A, data packets to be sent via a particular Pseudowire are labeled with an identifier associated with the Pseudowire, forwarded on to the next provider edge on one Pseudowire segment, and forwarded again if necessary until the packets reach the destination node 3B.

FIG. 2 is a flowchart illustrating an embodiment of a process of providing data protection using Pseudowires. Process 200 may be implemented on a source node such as A or IA of systems 100 and 150, or on an independent management agent that communicates with the source node. For purposes of illustration, the process is shown as implemented on a source node in the following example. The process initializes when a connection session is established between the source node and the destination node (202). A Pseudowire protection configuration parameter for configuring a Pseudowire based on the connection session is sent (204). The Pseudowire protection configuration parameter includes one or more fields that specify certain protection properties associated with the Pseudowire. It may be sent to the destination node or a management agent that communicates with the destination node. Details of the configuration parameter will be discussed further below.

Once the destination node (or its associated management agent) receives the Pseudowire protection configuration parameter, it determines whether it will accept the Pseudowire protection configuration and allow a standby Pseudowire to be established. Depending on implementation, the destination node determines whether to accept the protection configuration based on factors such as traffic condition, number of existing Pseudowires, priority information, etc. The destination node may reject the protection request for a number of reasons. For example, the destination node does not support Pseudowire protection mechanism as described here. If a standby Pseudowire may be established, the destination node accepts it and configures the Pseudowire based at least in part on the configuration parameters. In some embodiments, the destination node adds the Pseudowire to a table of Pseudowires. A corresponding Pseudowire configuration acknowledgment is generated, indicating whether the destination node has accepted the Pseudowire configuration. The Pseudowire configuration acknowledgment is sent to the source node. In some embodiments, as a part of the LDP process, a MPLS label for the data packets traversing through the standby Pseudowire is assigned.

At the source node, once the Pseudowire configuration acknowledgment is received (206), it is examined to determine whether the Pseudowire configuration has been accepted (208). If, according to the Pseudowire configuration acknowledgment, the Pseudowire configuration has been accepted by the destination, a standby Pseudowire is established based at least in part on the Pseudowire protection configuration parameter and may be used as such (210). If, however, the Pseudowire configuration has not been accepted, the process performs appropriate exception handling, such as re-sending the Pseudowire protection configuration parameter (212).

FIG. 3A is a flowchart illustrating another embodiment of a process of providing data protection using Pseudowires. Process 300 may be implemented on a PE, on an independent management agent, or the like. For purposes of illustration, in the following example, the process is initiated and carried out on a PE source node.

Process 300 begins with the initialization of an LDP session (302). According to the negotiation scheme based on LDP, the source node exchanges messages with the destination node and establishes an LDP Hello Adjacency (304). A Pseudowire setup request that includes a Pseudowire protection configuration parameter is sent to the destination node (or its associated management agent), requesting that a standby Pseudowire be established over the LDP Hello Adjacency (306). In some embodiments, multiple LDP Hello Adjacencies are available for Pseudowire setup, thus multiple setup requests are sent, and the destination node processes the requests and maps Pseudowires to appropriate LDP Hello Adjacencies. In some embodiments, the source node dynamically determines which LDP Hello Adjacency among the available connections is to be configured as a standby Pseudowire, and directs its setup request accordingly. The dynamic determination may be based on, among other things, bandwidth availability on the adjacency path.

In some embodiments, the request is sent as a LDP Label Mapping Message. The configuration parameter is used to configure various properties of the Pseudowire, including protection type, protection scheme, priority, etc. Further details of the configuration parameters are discussed below. In some embodiments, multiple LOP Hello Adjacencies are established and the source node sends multiple Pseudowire setup requests to configure Pseudowires over these LDP Hello Adjacencies.

In this example, upon receiving a Pseudowire setup request, the destination node maps the request to the appropriate LDP Hello Adjacency. If the mapping is successful, the Pseudowire is established. Sometimes, however, the mapping and consequently the Pseudowire setup may fail for reasons such as network congestion, resource limitation, equipment failure, etc. The destination node sends a Pseudowire configuration acknowledgment to the source node. In this example, the Pseudowire configuration acknowledgment is an LDP acknowledgement indicating whether a particular Pseudowire has been successfully established. Once the source node receives the acknowledgement (308), it determines whether the configuration has been accepted by the destination (310). If the configuration has been accepted, a standby Pseudowire is successfully established based at least in part on the Pseudowire protection configuration parameter, and the source and destination nodes can start using the standby Pseudowire to protect other Pseudowires (312). If, however, the acknowledgment indicates that the configuration has not been accepted and a Pseudowire has not been successfully established, appropriate exception handling measures such as resending the Pseudowire protection configuration parameter are taken (314).

Process 300 is applicable to both single-hop and multi-hop systems. In a single-hop system, the source node and the destination node correspond to a source PE and a destination PE on the network and the process is used to configure a standby Pseudowire between the PEs. In a multi-hop system, the process may be repeated by the PEs on various carrier networks to establish Pseudowire segments. For example, in system 150 of FIG. 1B, PE 1A can use process 300 to establish a Pseudowire segment with PE 6A, and PE 6A can use the same process to establish a Pseudowire segment with PE 6B, which can use the same process to establish a Pseudowire segment with PE 3B.

FIG. 3B is a flowchart illustrating how the Pseudowire is used, according to some embodiments. Process 350 may be implemented on the source node, the destination node, or both. In this example, the designation of the Pseudowire is first determined (352). The designation may be configured by a system administrator, in an Pseudowire configuration process, or any other appropriate means. If the Pseudowire is designated as a primary Pseudowire, it is configured to carry network traffic (354). In the event that a primary Pseudowire fails (356), the nodes associated with the Pseudowire will attempt to switch the traffic over to the standby Pseudowire by sending a switchover request to the Pseudowire (358). As will be shown in more detail below, in some embodiments, whether the traffic on the primary Pseudowire can preempt the traffic on the standby Pseudowire and be switched over depends on priority configuration of the Pseudowires.

If it is designated as a standby Pseudowire, it is enters into standby mode to provide protection to one or more primary Pseudowires (360). In some embodiments, the standby Pseudowire carries network traffic during normal operation. It is ready to take over traffic from the primary Pseudowire if necessary. If a switchover request is received from a primary Pseudowire (362), traffic on the primary Pseudowire is switched over to the standby Pseudowire. In some embodiments, the switchover only occurs if the priority comparison of the primary and standby Pseudowires indicates the switchover is allowed.

Optionally, during the operation, if a Pseudowire is no longer needed, the source node can send a withdraw request over the Pseudowire and the destination node disassociates the Pseudowire with the LDP Hello Adjacency to break the Pseudowire connection.

FIG. 4 is a data structure diagram illustrating an embodiment of a Pseudowire protection configuration parameter that specifies several protection-related properties of the Pseudowire. In this example, Pseudowire protection configuration parameter 400 includes four fields: protection scheme, protection type, domain type, and priority. A field may have one or more subfields. For example, the priority field is shown to include a holding priority and a setup priority. One or more of the fields and/or subfields may be used in various embodiments. Other appropriate fields may also be implemented. In the example shown, the fields are numerical values that map to appropriate property values.

In some embodiments, one of the following Pseudowire protection schemes is used to set up the Pseudowires: 1+1, 1:1, 1:N or M:N. The protection scheme field is used to indicate which protection scheme is used in the system setup. A specific protection scheme corresponds to a field value. For example, 1+1 maps to 0, 1:1 maps to 1, and so on. In a system implementing a 1+1 protection scheme, the same traffic is sent over two parallel Pseudowires and the receiver selects one traffic stream at a time. In a system implementing a 1:1 protection scheme, one Pseudowire is used is used to protect another Pseudowire. Similarly, in a 1:N system (e.g. MPLS Facility Backup), one Pseudowire is used to protect N other Pseudowires, and in a M:N system M Pseudowires are used to protect N other Pseudowires.

The protection type field is used to configure the standby mode of the Pseudowire. In some embodiments, cold, warm, and hot standby modes are supported. Other appropriate standby modes may be implemented in other embodiments. In some embodiments, in cold standby mode configuration, once network failure on a Pseudowire carrying network traffic is detected, a standby Pseudowire is selected from the remaining functional Pseudowires, and traffic is redirected to the standby Pseudowire. In some embodiments with warm standby mode configuration, one or more standby Pseudowires are established before any network failure has occurred. These standby Pseudowires, however, are not maintained or used to transport data until a network failure is detected. Upon failure detection, the source or destination nodes will modify the data-plane and switch data traffic over to the standby Pseudowire(s). In some embodiments with hot standby mode configuration, one or more standby Pseudowires are pre-established and maintained at both control-plane and data-plane, so that once a network failure is detected, data traffic is directly switched over to the standby Pseudowire(s).

The domain type field indicates whether the Pseudowire is configured in a single-hop environment where all the nodes of the Pseudowire belong to the same carrier network, or a multi-hop environment where the Pseudowire includes nodes on several carrier networks. This is because the intermediate may process single-hop and multi-hop Pseudowire differently.

The priority field indicates the preference level of a Pseudowire in preempting other Pseudowires during switchover. In the event of a network failure, the edge nodes will preferentially provide protection according to the priority setting of the Pseudowires. In a situation where network resources (such as bandwidth) are limited, data sent on a higher priority Pseudowire is more likely to be protected than data sent on a lower priority Pseudowire. In some embodiments, the priority field includes two subfields: a holding priority and a setup priority. The holding priority indicates the relative priority of a currently active Pseudowire with respect to other Pseudowires when the latter attempt to preempt the former's use of the data link. Stated another way, it determines how easily a currently active Pseudowire gives up its hold on a data link upon request. The setup priority indicates the relative priority of a Pseudowire during the setup process.

FIG. 5 is a flowchart illustrating an example process of using the priorities during switchover. Process 500 may be implemented on an edge node, an independent management agent, or the like. In this example, process 500 initiates when a network failure has been detected (502). It is determined whether preemption is required (504). Preemption is required when the failed link carries more Pseudowire traffic than the available bandwidth on the standby link. If preemption is not required, the Pseudowire(s) may directly switchover (506). If, however, preemption is required, the setup priorities of the Pseudowires on the failed link are compared and the Pseudowire with the highest setup priority is selected (508). The setup priority of the selected Pseudowire is compared to the holding priority of the standby Pseudowire (510). If the setup priority is greater than the holding priority, traffic on the selected Pseudowire is switched over to the standby Pseudowire (506). If, however, the setup priority is no greater than the holding priority, no switchover takes place and the standby Pseudowire continues to transfer its own data and the data of the failed Pseudowires is lost (514).

FIG. 6 is a diagram illustrating an example in which preemption takes place during a switchover operation. In this example, Pseudowires 600, 602 and 604 are active, primary Pseudowires carrying traffic. Pseudowire 604 is used as the standby. Pseudowire 600 has a holding priority and a setup priority of 10 and 11, respectively, Pseudowire 602 has priorities of 11 and 12, and Pseudowire 604 has priorities of 9 and 9. Thus, if the link on which Pseudowires 600 and 602 operate fails, the nodes will initiate switchover using Pseudowire 604. A comparison of the setup priority of Pseudowires 600 and 602 indicates that Pseudowire 602 has a higher setup priority, thus 602 is given preference in the switchover. The setup priority of Pseudowire 602 is compared with the holding priority of Pseudowire 604. Since 602's setup priority is greater than 604's holding priority, data on 602 preempts data on 604 and takes over the link.

Providing protection to network traffic using one or more Pseudowires has been disclosed. Pseudowire protection improves the reliability of Pseudowire services. Pseudowires are better controlled by appropriately configuring the properties of Pseudowires and without requiring significant changes to existing protocols and devices.

Although the foregoing embodiments have been described in some detail for purposes of clarity of understanding, the invention is not limited to the details provided. There are many alternative ways of implementing the invention. The disclosed embodiments are illustrative and not restrictive. 

1. (canceled)
 2. A method, comprising: establishing a standby pseudowire between a source node device and a destination node device in accordance with pseudowire configuration data sent to the destination node device; and determining whether to initiate a preemption of data traffic on the standby pseudowire based at least in part on a priority for the standby pseudowire specified by the pseudowire configuration data.
 3. The method of claim 2, wherein the establishing comprises establishing the standby pseudowire in response to detection of acknowledgement data indicating that the destination node device has accepted the pseudowire configuration data.
 4. The method of claim 2, further comprising sending the pseudowire configuration data to the destination node device by at least one of the source node device or a management device.
 5. The method of claim 2, further comprising initiating a switchover of the data traffic from a primary pseudowire to the standby pseudowire.
 6. The method of claim 5, wherein the initiating comprises initiating the switchover in response to a detection of a failure of the primary pseudowire.
 7. The method of claim 5, further comprising initiating the preemption of the data traffic on the standby pseudowire in response to a determination that an amount of the data traffic on the primary pseudowire exceeds an available bandwidth of the standby pseudowire.
 8. The method of claim 5, wherein the priority is a first priority, and wherein the initiating the switchover comprises initiating the switchover in response to a determination that the first priority for the standby pseudowire is lower than a second priority for the primary pseudowire.
 9. The method of claim 2, wherein the establishing further comprises establishing the standby pseudowire in further accordance with a standby mode specified by the pseudowire configuration data.
 10. The method of claim 2, wherein the establishing further comprises establishing the standby pseudowire in accordance with a domain type specified by the pseudowire configuration data, and wherein the domain type indicates whether a plurality of node devices comprising the standby pseudowire are coupled to a network device of a single carrier network or network devices of multiple carrier networks.
 11. The method of claim 2, wherein the establishing further comprises establishing the standby pseudowire in accordance with a protection type specified by the pseudowire configuration data, and wherein the protection type is one of a first protection type wherein same data traffic is sent over two pseudowires, a second protection type wherein one standby pseudowire protects another pseudowire, a third protection type wherein one standby pseudowire protects multiple other pseudowires, or a fourth protection type wherein multiple standby pseudowires protect multiple other pseudowires.
 12. A system, comprising: a memory that stores computer-executable instructions; and a processor, communicatively coupled to the memory, that executes or facilitates execution of the computer-executable instructions to at least: establish a standby pseudowire between a source node device and a destination node device based on pseudowire configuration data sent to the destination node device; and determining whether to initiate a preemption of network traffic on the standby pseudowire based at least in part on a priority of the standby pseudowire defined by the pseudowire configuration data.
 13. The system of claim 12, wherein the processor further executes or facilitates the execution of the computer-executable instructions to establish the standby pseudowire in response to receipt of acknowledgement data informing of an acceptance of the pseudowire configuration data by the destination node device.
 14. The system of claim 12, wherein the processor further executes or facilitates the execution of the computer-executable instructions to initiate a transition of the network traffic from a primary pseudowire to the standby pseudowire.
 15. The system of claim 14, wherein the processor further executes or facilitates the execution of the computer-executable instructions to initiate the transition in response to detection of a failure of the primary pseudowire.
 16. The system of claim 14, wherein the processor further executes or facilitates the execution of the computer-executable instructions to initiate the preemption of the network traffic in response to a determination that an amount of the network traffic on the primary pseudowire exceeds an amount of bandwidth available on the standby pseudowire.
 17. The system of claim 14, wherein the priority is a first priority, and wherein the processor further executes or facilitates the execution of the computer-executable instructions to initiate the transition in response to a determination that the first priority of the standby pseudowire is lower than a second priority of the primary pseudowire.
 18. The system of claim 12, wherein the processor further executes or facilitates the execution of the computer-executable instructions to establish the standby pseudowire further based on a standby mode defined by the pseudowire configuration data.
 19. The system of claim 12, wherein the processor further executes or facilitates the execution of the computer-executable instructions to establish the standby pseudowire further based on a domain type defined by the pseudowire configuration data, wherein the domain type indicates whether a plurality of node devices comprising the standby pseudowire are coupled to a single carrier network or multiple carrier networks.
 20. A computer-readable storage device having stored thereon computer-executable instructions that, in response to execution, cause a system comprising a processor to perform operations, comprising: establishing a standby pseudowire between a source node device and a destination node device in accordance with pseudowire parameter data sent to the destination node device; and determining whether to initiate a preemption of data traffic on the standby pseudowire based at least in part on a priority for the standby pseudowire specified by the pseudowire parameter data
 21. The computer-readable storage device of claim 20, wherein the operations further comprise initiating a switchover of the data traffic from a primary pseudowire to the standby pseudowire. 